package com.cskaoyan.mapper.marketMapper;

import com.cskaoyan.bean.marketBean.MarketCollect;
import com.cskaoyan.bean.marketBean.MarketCollectExample;
import com.cskaoyan.bean.vo.WxglMallManagementControllerVo.CollectListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCollectMapper {
    long countByExample(MarketCollectExample example);

    int deleteByExample(MarketCollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCollect record);

    int insertSelective(MarketCollect record);

    List<MarketCollect> selectByExample(MarketCollectExample example);

    MarketCollect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCollect record, @Param("example") MarketCollectExample example);

    int updateByExample(@Param("record") MarketCollect record, @Param("example") MarketCollectExample example);

    int updateByPrimaryKeySelective(MarketCollect record);

    int updateByPrimaryKey(MarketCollect record);

    int selectCountByValueId(@Param("valueId") Integer valueId);

    int updateCollectDeleteByValueId(Integer valueId);

    int insertCollect(@Param("marketCollect") MarketCollect marketCollect);

    List<CollectListVo> collectListFromGoodsAndCollect(@Param("type") Integer type);

    List<MarketCollect> selectMarketCollectByTypeUserId(MarketCollect marketCollect);
}